package com.abel.bigwater.dataserver.model.hgd

enum class HgdChannelType(_type: Char, _num: Byte) {
    PULSE_TYPE('P', 1),
    K_TYPE('K', 2),
    B_TYPE('B', 3),
    ANALOG_TYPE('A', 4),
    Q_TYPE('Q', 5),
    M_TYPE('M', 6);

    val abbr: Char = _type
    val num: Byte = _num

    companion object {
        fun findByNum(_num: Byte): HgdChannelType? = HgdChannelType.values().find { it.num == _num }
    }
}